<title>setInterval方法演示</title> 
<body > 
<form name="frm"> 
 <input name="txt" border="0" size="0"> 
 <input type="button" value="停止" onClick="window.clearInterval(intervalID)"> 
</form> 
<script> 
 var intervalID 
 intervalID=window.setInterval(setSize,200) 
 function setSize() 
 { 
 document.frm.txt.size++; 
 } 
</script> 
</body>
